import { createBrowserRouter, } from 'react-router-dom'
import {MemoHome}from '@/pages/Home'
import {MemoDataList} from '@/pages/DataList'
import {MemoParamsConfig} from '@/pages/ParamsConfig'
import {MemoParamsPrediction} from '@/pages/ParamsPrediction'
import {MemoTrainModel} from '@/pages/TrainModel'
const router = createBrowserRouter([
  {
      path:'/',
       element: <MemoHome />,
       children:[
        {
          index:true,
          element:<MemoParamsConfig/>
        },
        {
          path:'paramsprediction',
          element:<MemoParamsPrediction />
        },
        {
          path:'trainmodel',
          element:<MemoTrainModel />
        },        
        {
         path:'DataList',
          element:<MemoDataList />
        },
       ]
  }
  ])

  export default router